package com.qingfeng.qfcms.domin;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qingfeng.qfcms.contant.Constants;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @description：用户
 * @author：mengxd
 * @date：2015/10/1 14:51
 */
public class User implements Serializable {

    private String USER_ID;		//用户id
    private String USERNAME;	//用户名
    private String PASSWORD; 	//密码
    private String NAME;		//姓名
    private String RIGHTS;		//权限
    private String ROLE_ID;		//角色id
    private String org_id;
    private String LAST_LOGIN;	//最后登录时间
    private String IP;			//用户登录ip地址
    private String STATUS;		//状态
    private String NUMBER;
    private String EMAIL;
    private String LOGO;
    private Role role;			//角色对象

    private Organization organizationList;//部门对象


    //获取全Url
    public String getAllUrl(){
        return Constants.IMAGE_URL + LOGO;
    }


    public String getUSER_ID() {
        return USER_ID;
    }
    public void setUSER_ID(String uSER_ID) {
        USER_ID = uSER_ID;
    }
    public String getUSERNAME() {
        return USERNAME;
    }
    public void setUSERNAME(String uSERNAME) {
        USERNAME = uSERNAME;
    }
    public String getPASSWORD() {
        return PASSWORD;
    }
    public void setPASSWORD(String pASSWORD) {
        PASSWORD = pASSWORD;
    }
    public String getNAME() {
        return NAME;
    }
    public void setNAME(String nAME) {
        NAME = nAME;
    }
    public String getRIGHTS() {
        return RIGHTS;
    }
    public void setRIGHTS(String rIGHTS) {
        RIGHTS = rIGHTS;
    }
    public String getROLE_ID() {
        return ROLE_ID;
    }
    public void setROLE_ID(String rOLE_ID) {
        ROLE_ID = rOLE_ID;
    }
    public String getLAST_LOGIN() {
        return LAST_LOGIN;
    }
    public void setLAST_LOGIN(String lAST_LOGIN) {
        LAST_LOGIN = lAST_LOGIN;
    }
    public String getIP() {
        return IP;
    }
    public void setIP(String iP) {
        IP = iP;
    }
    public String getSTATUS() {
        return STATUS;
    }
    public void setSTATUS(String sTATUS) {
        STATUS = sTATUS;
    }

    public Role getRole() {
        return role;
    }
    public void setRole(Role role) {
        this.role = role;
    }

    public String getOrg_id() {
        return org_id;
    }

    public void setOrg_id(String org_id) {
        this.org_id = org_id;
    }


    public String getNUMBER() {
        return NUMBER;
    }

    public void setNUMBER(String NUMBER) {
        this.NUMBER = NUMBER;
    }

    public String getEMAIL() {
        return EMAIL;
    }

    public void setEMAIL(String EMAIL) {
        this.EMAIL = EMAIL;
    }

    public String getLOGO() {
        return LOGO;
    }

    public void setLOGO(String LOGO) {
        this.LOGO = LOGO;
    }

    public Organization getOrganizationList() {
        return organizationList;
    }

    public void setOrganizationList(Organization organizationList) {
        this.organizationList = organizationList;
    }

    @Override
    public String toString() {
        return "User{" +
                "USER_ID='" + USER_ID + '\'' +
                ", USERNAME='" + USERNAME + '\'' +
                ", PASSWORD='" + PASSWORD + '\'' +
                ", NAME='" + NAME + '\'' +
                ", RIGHTS='" + RIGHTS + '\'' +
                ", ROLE_ID='" + ROLE_ID + '\'' +
                ", org_id='" + org_id + '\'' +
                ", LAST_LOGIN='" + LAST_LOGIN + '\'' +
                ", IP='" + IP + '\'' +
                ", STATUS='" + STATUS + '\'' +
                ", NUMBER='" + NUMBER + '\'' +
                ", EMAIL='" + EMAIL + '\'' +
                ", LOGO='" + LOGO + '\'' +
                ", role=" + role +
                ", organizationList=" + organizationList +
                '}';
    }
}